GtkModelButton: Add a menu-name property
authorMatthias Clasen <mclasen@redhat.com>
Fri, 24 Oct 2014 03:38:46 +0000 (23:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Oct 2014 10:49:58 +0000 (06:49 -0400)
commite0959181286810c855d4a0c239a57281267d120a
tree361d292f159b757541c830c0fd4c0efcff78b0e1
parent1f81c83fd8a5690a8961d278f9d117ddb4be9d4e
GtkModelButton: Add a menu-name property

Add a menu-name property and use it in a default implementation
of ::clicked to switch menus if we are inside a stack. This means
GtkModelButton is no longer entirely generic, but rather expects
to be used inside a GtkPopoverMenu. It still works in other contexts
too, of course.
gtk/gtkmodelbutton.c